A prisoner exchange involving five years of negotiations through intermediaries on behalf of Hamas and Israel.